package com.elive.dao;

import com.elive.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> getOrderListByHostId(Integer hostId);

    List<Order> getOrderListByRenderId(Integer renderId);

    int selectStartDate(@Param("apartmentId") Integer apartmentId, @Param("startDate")String startDate);

    int selectEndDate(@Param("apartmentId") Integer apartmentId, @Param("endDate")String endDate);


}